import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUserStore = defineStore('user', () => {
    const userInfo = ref({
        name: 'Tom',
        age: 26
    })

    const count = ref(0)

    const addCount = () => {
        // count.value++;
    }

    return {
        userInfo,
        count,
        addCount
    }
},
{
    persist: {
        enabled: true
    }
})
